﻿using System.Collections.Generic;
using BoldBrick.OneIntranet.HR.Properties;
using BoldBrick.SharePoint.CommonControls.DataObjects.Base;

namespace BoldBrick.OneIntranet.HR.DataObjects.Lists.PositionsListData.Views
{
	public class ArchivedPositionsView : BaseView
	{
		public ArchivedPositionsView()
		{
			this.Query = Settings.Default.List_Positions_View_ArchivedPositions_Query;
		}

		protected override string GetTitleResourceKey()
		{
			return "List_Positions_View_ArchivedPositions_Title";
		}

		protected override string GetPageNameResourceKey()
		{
			return "List_Positions_View_ArchivedPositions_PageName";
		}

		public override List<ListColumn> GetViewColumns()
		{
			List<ListColumn> columns = new List<ListColumn>
			                           	{
			                           		SharePoint.CommonControls.DataObjects.SiteColumns.AttachmentsColumn,
			                           		SiteColumns.PositionNameWithMenuColumn,
			                           		SiteColumns.SeniorityLevelLookupColumn,
			                           		SiteColumns.EmploymentTypesLookupColumn,
			                           		SiteColumns.SalaryRangeFromColumn,
			                           		SiteColumns.SalaryRangeToColumn,
			                           		SiteColumns.VacanciesRemainingColumn,
			                           		SiteColumns.OpenFromColumn,
			                           		SiteColumns.ClosedOnColumn
			                           	};
			return columns;
		}
	}
}
